package fit.conceptmap.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import fit.conceptmap.beans.UserBean;
import fit.conceptmap.dao.IUserDao;
import fit.conceptmap.entities.User;
import fit.conceptmap.services.IUserService;

@Service
public class UserServiceImpl implements IUserService{

	@Autowired
	IUserDao userDao;
	
	@Override
	public List<User> getListUser() {
		return userDao.getListUser();
	}

	@Override
	public User getUserByUsername(String username) {
		return userDao.getUserByUsername(username);
	}

	@Override
	public boolean addNewUser(UserBean user) {
		return userDao.addNewUser(user);
	}

	@Override
	public boolean updateUser(UserBean user) {
		return userDao.updateUser(user);
	}

}
